package cn.bellychang.ood.litejunit.v2.biz.person;

import cn.bellychang.ood.litejunit.v2.framework.TestCase;

/**
 * @author ChangLiang
 * @date 2020/5/27
 */
public class PersonTest extends TestCase {

    public PersonTest(String name) {
        super(name);
    }

    Person p = null;

    @Override
    public void setUp() {
        p = new Person("andy", 30);
    }

    @Override
    public void tearDown() {
        p = null;
    }

    public void testAge() {
        assertEquals(30,p.getAge());
    }

    public void testName() {
        assertEquals("andyy",p.getName());
    }
}

class Person {
    private String name;
    private int age;

    public Person(String name, int age) {

        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }
}